home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’94
/
[√] May be freely distributed
/
Roy Leban
/
Pig Latin Folder
/
PigLatin.r
< prev
Wrap
Text File
|
1994-07-01
|
2KB
|
74 lines
/*
* Pig Latin Extension for FullWrite
*
* © 1994 by Akimbo Systems, Inc.
*
* Limited distribution permitted. This code and the compiled extension
* may be distributed provided that they are unmodified and that no
* charge is made for them.
*
* This extension was built with the preliminary FullWrite Extension SDK.
* For information, send e-mail to FullWrite@akimbo.com
*/
resource 'FWXT' (512, "Pig Latinize", preload) {
{ 1, editExtrasPlaceholder, alphabetical, noKey, noEventCode, plain,
needsTextSelection, unused2 },
simpleTextSelOnlyExtension {},
512,
{ keepFileOpen, noDocSetup, noPreferences, noBaseStyle, noUpdateRequests,
anySystemOK, anyMachineOK, unused9 },
{ dontNotifyOthers, noNotification },
{ noInterception },
unused2,
{ "", "© 1994 Akimbo Systems Inc.", }
};
resource 'FWXT' (513, "Pig Latin", preload) {
{ 1, stylePlaceholder, alphabetical, noKey, noEventCode, plain,
needsDocument, unused2 },
genericExtension {},
512,
{ keepFileOpen, noDocSetup, noPreferences, noBaseStyle, noUpdateRequests,
anySystemOK, anyMachineOK, unused9 },
{ dontNotifyOthers, noNotification },
{ dontInterceptEvents,
dontInterceptNullEvents,
dontInterceptCommands,
dontInterceptBanters,
interceptWords,
unused6,
commandNotSpecified
},
unused2,
{ "", "© 1994 Akimbo Systems Inc.", }
};
resource 'vers' (1) {
2, 0, release, 0,
verUS,
"2.0", "Pig Latin Extension\n© 1994 Akimbo Systems Inc."
};
resource 'vers' (2) {
2, 0, release, 0,
verUS,
"2.0", "FullWrite 2.0"
};
type 'Pig?' {
byte = ' ';
string;
};
resource 'Pig?' (1) {
// Translates the selection into Pig Latin.
"Anslatestray ethay electionsay intoyay Igpay Atinlay."
};
resource 'Pig?' (2) {
// Translates all the text you type into Pig Latin.
"Anslatestray allyay ethay exttay youyay ypetay intoyay Igpay Atinlay."
};